package springboot;

import ii.zjf.student.Student;
import ii.zjf.student.StudentProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class App {

    @Autowired
    private static StudentProperties studentProperties;

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(App.class, args);
        Student student = (Student) context.getBean("student-demo");
        System.out.println(student);
        context.close();

    }

}
